// app.js
import './utils/utils'
import './utils/http'
App({
  token:'',
  refreshToken:'',
  setToken(token,refreshToken){
    wx.setStorageSync('token', token)
    this.token = token
    wx.setStorageSync('refreshToken',refreshToken)
    this.refreshToken = refreshToken
  },
  getToken(){
    const token = wx.getStorageSync("token")
    this.token = token
    const refreshToken = wx.getStorageSync("refreshToken")
    this.refreshToken = refreshToken
  },
  onLaunch(){
    this.getToken()
  }
})

